package cn.itcast.bos.dao.base;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.base.TakeTime;

public interface TakeTimeRepository extends JpaRepository<TakeTime, Integer>,JpaSpecificationExecutor<TakeTime> {

	@Query("update TakeTime set status='1' where id=?")
	@Modifying
	public void updateStatusDel(Integer id);
	@Query("update TakeTime set status=null where id=?")
	@Modifying
	public void updateStatusBack(Integer id);

}
